﻿<UserControl x:Class="OI.Views.MashupToolboxView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:layoutToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit" xmlns:Controls1="clr-namespace:OI.Controls" xmlns:ctrls="clr-namespace:OI.Images" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid>
        
        <layoutToolkit:Accordion Width="{StaticResource MashupPanelSize}" SelectionMode="ZeroOrOne">

            <!--QUERYING-->
            <layoutToolkit:AccordionItem Header="Querying" IsSelected="False" IsEnabled="{Binding ToolsReady}"
                                         AccordionButtonStyle="{StaticResource OIAccordionButtonStyle}">
                <layoutToolkit:AccordionItem.Content>
                    <StackPanel Height="90" Margin="2,2,2,8">
                        <Controls1:Toolbox x:Name="QueryToolbox" HorizontalAlignment="Left"/>
                        <TextBlock x:Name="QueryHint" Style="{StaticResource GeneralText}" Margin="4,0,0,0" Width="200" Height="32" TextWrapping="Wrap"  HorizontalAlignment="Left"/>
                         
                         <!--Manage query action UI-->
                        <StackPanel Orientation="Horizontal" Margin="2,4,0,0" HorizontalAlignment="Left">
                            <HyperlinkButton x:Name="DoQuery" Content="query" Margin="0,0,8,0"/>
                            <HyperlinkButton x:Name="CancelQuery" Content="cancel" Margin="0,0,8,0"/>
                            
                            <StackPanel x:Name="QueryMode" Orientation="Horizontal">
                                <HyperlinkButton x:Name="ClearQueryShape" Content="clear" Margin="0,0,8,0"/>
                                <TextBlock x:Name="QueryDrawEditModeText" Style="{StaticResource GeneralText}" Margin="0,0,2,0"/>
                                <HyperlinkButton x:Name="ChangeQueryDrawEditMode" Content="mode"/>
                            </StackPanel>
                        </StackPanel>
                    </StackPanel>
                </layoutToolkit:AccordionItem.Content>
            </layoutToolkit:AccordionItem>

            <!--DRAWING-->
            <layoutToolkit:AccordionItem Header="Drawing" IsSelected="False"
                                         AccordionButtonStyle="{StaticResource OIAccordionButtonStyle}">
                <layoutToolkit:AccordionItem.Content>
                    <StackPanel Height="Auto" Margin="2,2,2,8">
                        <Controls1:Toolbox x:Name="DrawToolbox" HorizontalAlignment="Left" />
                        <TextBlock x:Name="DrawingHint" Style="{StaticResource GeneralText}" Margin="4,0,0,0" Width="200" Height="32" TextWrapping="Wrap" HorizontalAlignment="Left"/>
                        <TextBlock x:Name="Measurement" Style="{StaticResource GeneralText}" Margin="4,4,0,0" Width="200" Height="32" TextWrapping="Wrap" HorizontalAlignment="Left" />

                        <!--Manage draw action UI-->
                        <StackPanel Orientation="Horizontal" Margin="2,4,0,0" HorizontalAlignment="Left">
                            <Rectangle Width="16" Height="16" Fill="{Binding ColorSwatch}" />
                            <HyperlinkButton x:Name="Colors" Content="colors" Margin="0,0,8,0"/>
                            <HyperlinkButton x:Name="Units" Content="units" Margin="0,0,8,0"/>
                            <HyperlinkButton x:Name="DoDraw" Content="finish" Margin="0,0,8,0"/>
                            <HyperlinkButton x:Name="CancelDraw" Content="cancel" Margin="0,0,8,0"/>
                        </StackPanel>
                    </StackPanel>
                </layoutToolkit:AccordionItem.Content>
            </layoutToolkit:AccordionItem>

            <!--SHARING-->
            <layoutToolkit:AccordionItem Header="Sharing" IsSelected="False" 
                                         AccordionButtonStyle="{StaticResource OIAccordionButtonStyle}">
                <layoutToolkit:AccordionItem.Content>
                    <StackPanel Height="Auto" Margin="2,2,2,8">
                        <Controls1:Toolbox x:Name="ShareToolbox" />
                    </StackPanel>
                </layoutToolkit:AccordionItem.Content>
            </layoutToolkit:AccordionItem>

            <!--ABOUT-->
            <layoutToolkit:AccordionItem Header="About" IsSelected="False"
                                         AccordionButtonStyle="{StaticResource OIAccordionButtonStyle}">
                <layoutToolkit:AccordionItem.Content>
                    <Grid Margin="4,8,4,8" HorizontalAlignment="Left">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="48" />
                            <RowDefinition Height="48" />
                            <RowDefinition Height="48"/>
                            <RowDefinition Height="48" />
                            <RowDefinition Height="48" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="150" />
                            <ColumnDefinition Width="70" />
                        </Grid.ColumnDefinitions>
                        
                        <!--ISC-->
                        <StackPanel Orientation="Vertical" Grid.Column="0" Grid.Row="0" VerticalAlignment="Top" Margin="2,12,0,0">
                            <TextBlock Style="{StaticResource GeneralTextLt}">Developed by:</TextBlock>
                        <HyperlinkButton Foreground="Black" TargetName="_new" Content="www.goisc.com" NavigateUri="http://www.goisc.com"></HyperlinkButton>
                        </StackPanel>
                        <Image  Width="60" Grid.Column="1" Grid.Row="0" Source="../Images/ISC-logo.png" 
                            Stretch="Uniform" VerticalAlignment="Top"  Margin="2,12,0,0" HorizontalAlignment="Left"/>

                        <!--MDN-->
                        <StackPanel Orientation="Vertical" Grid.Column="0" Grid.Row="1" VerticalAlignment="Top" Margin="2,12,0,0">
                            <TextBlock Style="{StaticResource GeneralTextLt}">Powered by:</TextBlock>
                        <HyperlinkButton Foreground="Black" TargetName="_new" Content="www.mapdotnet.com" NavigateUri="http://www.mapdotnet.com"></HyperlinkButton>
                        </StackPanel>
                        <ctrls:MDNSLogo Width="60" Grid.Column="1" Grid.Row="1" VerticalAlignment="Top" Margin="2,12,0,0" HorizontalAlignment="Left">
                            <ctrls:MDNSLogo.RenderTransform>
                                <ScaleTransform ScaleX="0.2" ScaleY="0.2"></ScaleTransform>
                            </ctrls:MDNSLogo.RenderTransform>
                        </ctrls:MDNSLogo>

                        <!--Bing-->
                        <StackPanel Orientation="Vertical" Grid.Column="0" Grid.Row="2" VerticalAlignment="Top" Margin="2,12,0,0">
                            <TextBlock Style="{StaticResource GeneralTextLt}">Base maps:</TextBlock>
                            <HyperlinkButton Foreground="Black" TargetName="_new" Content="maps.bing.com" NavigateUri="http://maps.bing.com"></HyperlinkButton>
                        </StackPanel>
                        <Image Grid.Column="1" Grid.Row="2" Source="../Images/BingLogo.png" Width="60"
                               Stretch="Uniform" VerticalAlignment="Top" Margin="2,12,0,0" HorizontalAlignment="Left"/>

                        <!--Azure-->
                        <StackPanel Orientation="Vertical" Grid.Column="0" Grid.Row="3" VerticalAlignment="Top" Margin="2,12,0,0">
                            <TextBlock Style="{StaticResource GeneralTextLt}">Hosted in:</TextBlock>
                            <HyperlinkButton Foreground="Black" TargetName="_new" Content="windows.azure.com" NavigateUri="http://windows.azure.com"></HyperlinkButton>
                            </StackPanel>
                        <Image Grid.Column="1" Grid.Row="3" Source="../Images/azure-logo.png" 
                               Stretch="Uniform" VerticalAlignment="Top" Margin="2,12,0,0" HorizontalAlignment="Left"/>

                        <!--SQL Azure-->
                        <StackPanel Orientation="Vertical" Grid.Column="0" Grid.Row="4" VerticalAlignment="Top" Margin="2,12,0,0">
                            <TextBlock Style="{StaticResource GeneralTextLt}">Driven by:</TextBlock>
                            <HyperlinkButton Foreground="Black" TargetName="_new" Content="sql.azure.com" NavigateUri="http://sql.azure.com"></HyperlinkButton>
                            </StackPanel>
                        <Image Grid.Column="1" Grid.Row="4" Source="../Images/SQLAzureLogo.png" 
                               Stretch="Uniform" VerticalAlignment="Top" Margin="2,12,0,0" HorizontalAlignment="Left"/>
                    </Grid>
                </layoutToolkit:AccordionItem.Content>
            </layoutToolkit:AccordionItem>
        </layoutToolkit:Accordion>

    </Grid>
</UserControl>
